
import { _decorator, director } from 'cc';
import { SCENE_ENUM } from '../Enum';
import DataManager from '../Runtime/DataManager';
import { SceneManager } from './SceneManager';
const { ccclass, property } = _decorator;

@ccclass('MenuSceneManager')
export class MenuSceneManager extends SceneManager {
    type: SCENE_ENUM = SCENE_ENUM.Menu;

    handleNewGame() {
        DataManager.Instance.reset();
        // director.loadScene(SCENE_ENUM.H1);
        director.loadScene(DataManager.Instance.curScene);
    }

    handleContinueGame() {
        DataManager.Instance.restore();
        director.loadScene(DataManager.Instance.curScene);
    }

    render() {

    }
}